package cn.sfrog.project.biz.web.mapstruct;


import cn.sfrog.project.biz.admin.domain.BizServiceOrder;
import cn.sfrog.project.biz.admin.domain.vo.BizHelpCustomerOrderFormVO;
import cn.sfrog.project.biz.web.vo.order.AppServiceOrderFormVO;
import cn.sfrog.project.biz.web.vo.order.AppServiceOrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

//@Mapper
public interface AppServiceOrderConverter {

    AppServiceOrderConverter INSTANCE = Mappers.getMapper(AppServiceOrderConverter.class);

    /**
     * form表单转化实体
     * @param formVO
     * @return
     */
    BizServiceOrder formTo(AppServiceOrderFormVO formVO);

    /**
     * 实体类转化为实体类
     * @param serviceOrder
     * @return
     */
    AppServiceOrderVO entity2Entity(BizServiceOrder serviceOrder);

    /**
     * form表单转化实体
     * @param formVO
     * @return
     */
    BizServiceOrder helpCustomerForm2Entity(BizHelpCustomerOrderFormVO formVO);

}
